package com.ruoyi.ldzlsc.domain;

import com.ruoyi.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 材料退库明细对象 sc_material_return_detail
 *
 * @author ldzl
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class ScMaterialReturnDetail extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long materialReturnDetailId;

    /** 退库单ID */
    private Long materialReturnId;

    /** 物料ID */
    private Long materialId;

    /** 数量 */
    private BigDecimal qtyNum;

    /** 逻辑删除标记 (0=未删除 1=已删除) */
    private String isDelete;

    public ScMaterialReturnDetail() {
    }

    public ScMaterialReturnDetail(Long materialReturnId, Long materialId, BigDecimal qtyNum, String remark) {
        this.materialReturnId = materialReturnId;
        this.materialId = materialId;
        this.qtyNum = qtyNum;
        this.setRemark(remark);
        this.isDelete = "0";
    }
}
